import axios from '../../utils/request'

export const login = (mobile, code) => {
  return axios({
    url: '/app/v1_0/authorizations',
    method: 'post',
    data: {
      mobile,
      code
    }
  })
}

export const getProfile = () => {
  return axios({
    method: 'GET',
    url: '/app/v1_0/user/profile'
    // headers: {
    // // Authorization: 'Bearer token值' 之间有空格
    //   Authorization: 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2MDEzNzUwNzIsInVzZXJfaWQiOjExMDI0OTA1MjI4Mjk3MTc1MDQsInJlZnJlc2giOmZhbHNlfQ.eUP6ZwvQNZyDB8Ic6fslrWSLp6ZCIDtTFv4y2ohMl5o'
    // }
  })
}
